<?php

namespace app\admin\service;

use app\admin\model\Position;

/**
 * 岗位管理-服务类
 * Class PositionService
 * @package app\admin\service
 */
class PositionService extends BaseService
{
    /**
     * 构造函数
     *
     * PositionService constructor.
     */
    public function __construct()
    {
        $this->model = new Position();
    }

    /**
     * 获取岗位列表
     * @return array
     *
     */
    public function getPositionList()
    {
        $list = $this->model->where([
            ['status', '=', 1],
            ['mark', '=', 1],
        ])->order("sort", "asc")
            ->select()
            ->toArray();
        return message("操作成功", true, $list);
    }

}